import request from '@/utils/request'

// 查询年级信息列表
export function listGrades(query) {
  return request({
    url: '/wsd_grades/list',
    method: 'get',
    params: query
  })
}

// 查询年级信息详细
export function getGrades(id) {
  return request({
    url: '/wsd_grades/' + id,
    method: 'get'
  })
}

// 新增年级信息
export function addGrades(data) {
  return request({
    url: '/wsd_grades',
    method: 'post',
    data: data
  })
}

// 修改年级信息
export function updateGrades(data) {
  return request({
    url: '/wsd_grades',
    method: 'put',
    data: data
  })
}
//获取学校
export function getschool() {
  return request({
    url: '/wsd_schools/schoolList',
    method: 'get'
  })
}
// 删除年级信息
export function delGrades(id) {
  return request({
    url: '/wsd_grades/' + id,
    method: 'delete'
  })
}
